import { postRequest, getRequest } from '/@/lib/axios';
import axios from 'axios';

export const api = {
  page (param: any) {
    return postRequest('/eapi/dictionary/page?Content-Type=application/json', param);
  },
  add (param: any) {
    return postRequest('/eapi/dictionary/add?Content-Type=application/json', param);
  },
  update (param: any) {
    return postRequest('/eapi/dictionary/updateDictionary?Content-Type=application/json', param);
  },
  delete (indocno: any) {
    return getRequest('/eapi/dictionary/delete?indocno=' + indocno, null);
  },
};